import request from "@/utils/request";

// 确认归档的任务
export function confirmArchive(data) {
  return request({
    url: "/system/filing/getTask",
    method: "post",
    data,
  });
}

// 归档列表
export function archiveList(data) {
  return request({
    url: "/system/filing/list",
    method: "get",
    params: data,
  });
}

// 归档添加
export function addFiling(data) {
  return request({
    url: "/system/filing/addFiling",
    method: "post",
    data,
  });
}

// 归档更新
export function archiveUpdate(data) {
  return request({
    url: "/system/filing/update",
    method: "put",
    data,
  });
}

// 归档详情
export function archiveDetail(archivistId) {
  return request({
    url: "/system/filing/getFilingById/" + archivistId,
    method: "get",
  });
}

// 归档撤回
export function withdrawApi(data){
  return request({
    url:"/system/filing/quashFiling",
    method:"post",
    data
  })
}


// 归档删除
export function deleteArchiveData(data){
  return request({
    url:"/system/filing/delete/"+data,
    method:"delete"
  })
}



